Skip to main content

Check VA Info

API VA Flow

Path

  • URL: /cb-core/api/v1/va/check-info
  • Method: POST
  • Description: This API allows users to send requests to check information of a Virtual Account

Request

Request Table

ParamsData Type + LengthRequiredDescription
request_idstring(50)YesUnique request ID, suggested format: MerchantCode+YYYYMMDDHHMMSS+UniqueId
request_timestring(19)YesFormat: YYYY-MM-DD HH:MM:SS
merchant_codestring(20)YesMerchant code provided by Baokim before integration
reference_codestring(100)YesThe reference code of VA managed in your system

Request Example

{
"request_id": "PARTNER12320231105123000ID01",
"request_time": "2023-11-05 12:30",
"merchant_code": "PARTNER123",
"reference_code": "ORDER12345"
}

Response

Response Table

ParamsData Type + LengthRequiredDescription
response_codeint(4)YesError code from Baokim as per Error Codes Table
response_messagestring(100)YesDescription of the error code from Baokim as per Error Codes Table
merchant_codestring(20)YesMerchant code provided by Baokim before integration
reference_codestring(100)YesThe reference code of VA managed in your system
statusint(1)Yes1: Active; 2: Inactive
expire_datestring(19)YesFormat: YYYY-MM-DD HH:MM:SS
account_infoobjectYesVirtual account details
account_info.bank_namestring(100)YesBank name
account_info.bank_nostring(6)YesBank no
account_info.bank_branchstring(100)YesBank branch
account_info.acc_nostring(22)YesBank account number
account_info.acc_namestring(63)YesAccount holder's name
account_info.qrstring(100)YesQR string encoded with base64
account_info.qr_pathstring(100)YesQR image path

Response Example

{
"response_code": 200,
"response_message": "Success",
"merchant_code": "BAOKIM",
"reference_code": "ORD12345678901234567890345",
"status": 1,
"expire_date": "2024-12-31 23:59",
"account_info": {
"bank_name": "Nguyen Van A",
"bank_no": "963336",
"bank_branch": "Main Branch",
"acc_no": "12345678901234567890",
"acc_name": "John Doe",
"qr": "SGVsbG8sIFdvcmxkIQ==",
"qr_path": "/path/to/qr/image.png"
}
}

Error Code

Response CodeResponse Message
200Success
99Pending
11Failed
101System Error
110Merchant Code Invalid
120Invalid Signature
422Validation Error
1100Virtual account does not exist